package com.yc.exam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yc.exam.entity.Topic;
import com.yc.exam.vo.TopicVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author exam
 * @since 2022-03-23
 */
@Mapper
public interface TopicMapper extends BaseMapper<Topic> {
  /** 加载page 信息 */
  Page<TopicVo> loadPage(Page<Topic> examPage, TopicVo topic);

    List<Topic> selectTopicByDifficultyAndCount(Long courseId,Integer type, Integer difficulty, Integer count);
}
